package com.china.juju.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="juju_searchword"
    ,catalog="zutuan_prot"
)
public class JujuSearchword  implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    public static final String ENTITY_NAME = "com.china.juju.entity.JujuSearchword";
	public static final String TABLE_NAME="juju_searchword";

    public static final String PK_Field = "id"; 
    public static final String PK_Method = "getId";  
	
	public static final String P_id = "id"; 
	public static final String P_word = "word"; 
	public static final String P_wordtype = "wordtype"; 

     private long id;
     private String word;
     private String wordtype;

    public JujuSearchword() {
    }
	
    public JujuSearchword(long id) {
        this.id = id;
    }
    public JujuSearchword(long id, String word, String wordtype) {
        this.id = id;
        this.word = word;
        this.wordtype = wordtype;
    }
   
    @Id 
    @GeneratedValue( generator="paymentableGenerator")  
    @GenericGenerator(name="paymentableGenerator", strategy="uuid")  
    
    @Column(name="id", unique=true, nullable=false)
    public long getId() {
        return this.id;
    }
    
    public void setId(long id) {
        this.id = id;
    }
    
    @Column(name="word")
    public String getWord() {
        return this.word;
    }
    
    public void setWord(String word) {
        this.word = word;
    }
    
    @Column(name="wordtype")
    public String getWordtype() {
        return this.wordtype;
    }
    
    public void setWordtype(String wordtype) {
        this.wordtype = wordtype;
    }



    @Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}


